package wwy.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;
import wwy.Common.orgEntity.LogicEntity;

@Entity
@Getter
@Setter
public class Foods extends LogicEntity {
    private String name;
    private String description;
    private Double price;

    @ManyToOne(fetch = FetchType.LAZY)
    @JsonIgnoreProperties(value = {"foods"})
    private Merchant merchant;
}
